import React, { useState } from 'react'
import Test from './Test'
export default function App() {
  const [count, setCount] = useState(1)

  return (
    <div>
      App
      <p>{count}</p>
      <button
        onClick={function () {
          setCount(0)
        }}
      >
        +
      </button>
      <hr />
      {count && <Test></Test>}
    </div>
  )
}
